package com.lhh.springcommon.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * jwt 配置文件
 * @author 李厚航
 */
@Configuration
@ConfigurationProperties(prefix = "jwt")
@Data
public class JwtConfigurationProperties {

    private Utils utils;
    private Excluded excluded;

    @Data
    public static class Utils{
        private String secret;
        private String issue;
        private long timeout;
    }

    @Data
    public static class Excluded{
        private List<String> path;
    }
}
